package com.thoughtworks.mobile;

import android.app.Activity;
import android.graphics.Color;
import android.os.Bundle;
import android.widget.FrameLayout;

public class MainActivity extends Activity
{
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);

        final Ring ring1 = new Ring(this, 60, -30, 302, "Adopt");
        final Ring ring2 = new Ring(this, 120, -61, 333, "Trial");
        final Ring ring3 = new Ring(this, 160, -59, 331, "Assess");
        final Ring ring4 = new Ring(this, 165, -59, 331, "");
        final Ring ring5 = new Ring(this, 200, -74, 347, "Hold");


        FrameLayout frameLayout = new FrameLayout(this);
        frameLayout.setBackgroundColor(Color.WHITE);
        frameLayout.addView(ring1);
        frameLayout.addView(ring2);
        frameLayout.addView(ring3);
        frameLayout.addView(ring4);
        frameLayout.addView(ring5);
        RadarItem radarItem = new RadarItem(this);
        radarItem.setX(200);
        radarItem.setY(300);
        frameLayout.addView(radarItem);
        setContentView(frameLayout);
    }
}
